package st.shadow.library.ui.dialog;

import android.app.Dialog;

/**
 * @author zhangyu
 * @date 2018/3/8
 */

public interface IDialog {
    void showProgressDialog(boolean canCancel, String title, String msg);

    void showProgressDialogWithCancel(String title, String msg,
                                      IDialogClickListener clickListener);

    void changeText(String title, String msg);

    void setConfirmText(String content);

    void setCancelText(String content);

    void showCancel(boolean isShow);

    void showSuccess(String title, String msg, IDialogClickListener clickListener);

    void showFailed(String title, String msg, IDialogClickListener clickListener);

    void showWarning(String title, String msg, IDialogClickListener clickListener);

    void showWarning(String title, String msg, IDialogClickListener clickListener
            , IDialogClickListener cancelListener);

    void clearDialog();

    void stopProgressWithSuccess(String option, String msg, IDialogClickListener listener);

    void changeToProgressType(String msg);

    void stopProgressWithFailed(String option, String msg);

    void stopProgressWithFailed(String option, String msg, IDialogClickListener listener);

    Dialog getDialog();
}
